﻿/*CREATE TRIGGER [dbo].[Juntas_DeletionTrigger] 
    ON [Juntas] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Juntas_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[JuntaGuid] = [Juntas_Tombstone].[JuntaGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Juntas_Tombstone] 
    ([JuntaGuid], DeletionDate)
    SELECT [JuntaGuid], GETUTCDATE()
    FROM deleted 
END*/